package com.tl.bootmeter.service.impl;

import com.tl.bootmeter.mapper.MeterModeMapper;
import com.tl.bootmeter.pojo.MeterMode;
import com.tl.bootmeter.service.IMeterModeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MeterModeServiceImpl implements IMeterModeService {
    @Autowired
    private MeterModeMapper meterModeMapper;
    //根据仪表编号查询最近日期的24条数据
    @Override
    public List<MeterMode> findAllMeterModeBySn(String meter_sn) {
        List<MeterMode> modeList  = meterModeMapper.selectAllMeterModeBySn(meter_sn);
        System.out.println("service查询出来的结果集="+modeList);
        return modeList;
    }
}
